package com.jgp.third.pay.model;

import com.jgp.common.persistence.UUIDModel;

import javax.persistence.*;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2018/10/24
 */
@Entity
@Table(name = "third_payment_config")
public class PaymentConfig extends UUIDModel{
    @Column(name = "icon")
    private String icon;
    
    @Column(name="domain")
    private String domain;
    
    @Column(name = "mode", length = 10,unique = true)
    @Enumerated(EnumType.STRING)
    private PaymentMode mode;
    
    @Lob
    @Column(name = "config")
    private String config;
    
    @Column(name="remark", length = 200)
    private String remark;
    
    @Column(name="user_id")
    private String userId;
    
    public String getIcon() {
        return icon;
    }
    
    public void setIcon(String icon) {
        this.icon = icon;
    }
    
    public String getDomain() {
        return domain;
    }
    
    public void setDomain(String domain) {
        this.domain = domain;
    }
    
    public PaymentMode getMode() {
        return mode;
    }
    
    public void setMode(PaymentMode mode) {
        this.mode = mode;
    }
    
    public String getConfig() {
        return config;
    }
    
    public void setConfig(String config) {
        this.config = config;
    }
    
    public String getUserId() {
        return userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    public String getRemark() {
        return remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
